
//  ClinicDetailController.m
//  ybzj
//
//  Created by liyuan on 15/7/14.
//  Copyright (c) 2015年 liyuan. All rights reserved.
//

#import "ClinicDetailController.h"
#import <CoreText/CoreText.h>
#import "DetailInformationController.h"
#import "MapKit/Mapkit.h"
#import "DoctorTableViewCell.h"
#import "CommentTableViewCell1.h"


@interface ClinicDetailController ()
@property (weak, nonatomic) IBOutlet UIView *TopView;
@property (weak, nonatomic) IBOutlet UIView *InformationView;
@property (weak, nonatomic) IBOutlet UIView *TopLineView;
@property (weak, nonatomic) IBOutlet UISegmentedControl *Segment;
@property (weak, nonatomic) IBOutlet UIView *SegmentBottomView1;
@property (weak, nonatomic) IBOutlet UIView *SegmentBottomView2;
@property (weak, nonatomic) IBOutlet UIView *SegmentBottomView3;
@property (weak, nonatomic) IBOutlet UIButton *CancelButton;
@property (weak, nonatomic) IBOutlet UILabel *TitleLabel;
@property (weak, nonatomic) IBOutlet UIScrollView *ContentView;
@property (weak, nonatomic) IBOutlet UITableView *DoctorTable;
@property (weak, nonatomic) IBOutlet UITableView *EvaluateTable;
@property (weak, nonatomic) IBOutlet UITextView *TextView;
@property (weak, nonatomic) IBOutlet UILabel *ServiceImageLabel;
@property (weak, nonatomic) IBOutlet UILabel *ServiceTitleLabel;
@property (weak, nonatomic) IBOutlet UITextView *ServiceTextView;
@property (weak, nonatomic) IBOutlet UILabel *LocationImageLabel;
@property (weak, nonatomic) IBOutlet UILabel *LocationTitleLabel;
@property (weak, nonatomic) IBOutlet UITextView *LocationTextView;
@property (strong,nonatomic) DetailInformationController *detailController;
@property (weak, nonatomic) IBOutlet MKMapView *MapView;
@property (weak, nonatomic) IBOutlet UIButton *appointButton;
@property (nonatomic) CGFloat Scrollheight;
@property (nonatomic) NSArray *DoctorTableData;

@end

@implementation ClinicDetailController

- (void)viewDidLoad {
    [super viewDidLoad];
   
    // Do any additional setup after loading the view.
    //set constrain for topBarView and topLineView
    CGFloat width=[UIScreen mainScreen].bounds.size.width;
    self.TopView.backgroundColor=[UIColor colorWithRed:248/255.0 green:248/255.0 blue:249/255.0 alpha:1];
    self.TopLineView.backgroundColor=[UIColor colorWithRed:155/255.0 green:156/255.0 blue:151/255.0 alpha:1];
    
    self.appointButton.backgroundColor=[UIColor colorWithRed:33/255.0 green:204/255.0 blue:129/255.0 alpha:1];
    //self.appointButton.backgroundColor=[UIColor clearColor];
    /*
    if(!self.detailController){
        self.detailController=[[DetailInformationController alloc] initWithNibName:@"DetailInformation" bundle:nil];
         self.detailController.view.frame=self.InformationView.bounds;
    }
   
    if(self.InformationView.subviews==nil || [self.InformationView.subviews isKindOfClass:[NSNull class]] || self.InformationView.subviews.count==0){
        [self.InformationView addSubview:self.detailController.view];
    }
    */
    //set constrain for topView
    self.TopView.translatesAutoresizingMaskIntoConstraints=NO;
    NSLayoutConstraint *topConstrainforTopView =[NSLayoutConstraint constraintWithItem:self.TopView
                                                                            attribute:NSLayoutAttributeTop
                                                                            relatedBy:NSLayoutRelationEqual
                                                                               toItem:self.view
                                                                            attribute:NSLayoutAttributeTop
                                                                           multiplier:1.0f
                                                                             constant:0];
    topConstrainforTopView.active=YES;
    
    //setconstrain for segment
    self.Segment.translatesAutoresizingMaskIntoConstraints=NO;
    NSLayoutConstraint *topConstrainforSegment=[NSLayoutConstraint constraintWithItem:self.Segment
                                                                           attribute:NSLayoutAttributeTop
                                                                           relatedBy:NSLayoutRelationEqual
                                                                              toItem:self.TopLineView
                                                                           attribute:NSLayoutAttributeBottom
                                                                          multiplier:1.0f
                                                                            constant:-0];
    
    NSLayoutConstraint *leftConstrainforSegment=[NSLayoutConstraint constraintWithItem:self.Segment
                                                                            attribute:NSLayoutAttributeLeading
                                                                            relatedBy:NSLayoutRelationEqual
                                                                               toItem:self.view
                                                                            attribute:NSLayoutAttributeLeading
                                                                           multiplier:1.0f
                                                                             constant:width*20/640];
    
    NSLayoutConstraint *rightConstrainforSegment=[NSLayoutConstraint constraintWithItem:self.Segment
                                                                             attribute:NSLayoutAttributeTrailing
                                                                             relatedBy:NSLayoutRelationEqual
                                                                                toItem:self.view
                                                                             attribute:NSLayoutAttributeTrailing
                                                                            multiplier:1.0f
                                                                              constant:0-width*20/640];
    NSLayoutConstraint *heightConstrainforSegment=[NSLayoutConstraint constraintWithItem:self.Segment
                                                                             attribute:NSLayoutAttributeHeight
                                                                             relatedBy:NSLayoutRelationEqual
                                                                                toItem:nil
                                                                             attribute:NSLayoutAttributeNotAnAttribute
                                                                            multiplier:1.0f
                                                                              constant:width*58/640];
    
    topConstrainforSegment.active=YES;
    leftConstrainforSegment.active=YES;
    rightConstrainforSegment.active=YES;
    heightConstrainforSegment.active=YES;
   
    [self.Segment addTarget:self action:@selector(segmentClick:) forControlEvents:UIControlEventValueChanged];
    [self.Segment setTitle:@"诊所简介" forSegmentAtIndex:0];
    [self.Segment setTitle:@"医资力量" forSegmentAtIndex:1];
    [self.Segment setTitle:@"评价" forSegmentAtIndex:2];
    NSDictionary *NomaltextDictionary=[NSDictionary dictionaryWithObjectsAndKeys:[UIColor colorWithRed:0/255.0 green:203/255.0 blue:120/255.0 alpha:1],NSForegroundColorAttributeName,[UIFont systemFontOfSize:width*25/640],NSFontAttributeName, nil];
    NSDictionary *SelecttextDictionary=[NSDictionary dictionaryWithObjectsAndKeys:[UIColor colorWithRed:187/255.0 green:188/255.0 blue:189/255.0 alpha:1],NSForegroundColorAttributeName,[UIFont systemFontOfSize:width*25/640],NSFontAttributeName, nil];
    [self.Segment setTitleTextAttributes:NomaltextDictionary forState:UIControlStateSelected];
    [self.Segment setTitleTextAttributes:SelecttextDictionary forState:UIControlStateNormal];
    
    //set constrains for view1
    self.SegmentBottomView1.translatesAutoresizingMaskIntoConstraints=NO;
    NSLayoutConstraint *topConstrainforSegmentBottomView1=[NSLayoutConstraint constraintWithItem:self.SegmentBottomView1
                                                                                      attribute:NSLayoutAttributeTop
                                                                                      relatedBy:NSLayoutRelationEqual
                                                                                         toItem:self.Segment
                                                                                      attribute:NSLayoutAttributeTop
                                                                                     multiplier:1.0f
                                                                                       constant:width*58/640];
    NSLayoutConstraint *leftConstrainforSegmentBottomView1=[NSLayoutConstraint constraintWithItem:self.SegmentBottomView1
                                                                                      attribute:NSLayoutAttributeLeading
                                                                                      relatedBy:NSLayoutRelationEqual
                                                                                         toItem:self.view
                                                                                      attribute:NSLayoutAttributeLeading
                                                                                     multiplier:1.0f
                                                                                       constant:width*20/640];
    NSLayoutConstraint *heightConstrainforSegmentBottomView1=[NSLayoutConstraint constraintWithItem:self.SegmentBottomView1
                                                                                      attribute:NSLayoutAttributeHeight
                                                                                      relatedBy:NSLayoutRelationEqual
                                                                                         toItem:nil
                                                                                      attribute:NSLayoutAttributeNotAnAttribute
                                                                                     multiplier:1.0f
                                                                                       constant:1];
    NSLayoutConstraint *widthConstrainforSegmentBottomView1=[NSLayoutConstraint constraintWithItem:self.SegmentBottomView1
                                                                                      attribute:NSLayoutAttributeWidth
                                                                                      relatedBy:NSLayoutRelationEqual
                                                                                         toItem:nil
                                                                                      attribute:NSLayoutAttributeNotAnAttribute
                                                                                     multiplier:1.0f
                                                                                       constant:width*200/640];
    topConstrainforSegmentBottomView1.active=YES;
    leftConstrainforSegmentBottomView1.active=YES;
    heightConstrainforSegmentBottomView1.active=YES;
    widthConstrainforSegmentBottomView1.active=YES;
    
    
    ////set constrains for view2
    
    self.SegmentBottomView1.translatesAutoresizingMaskIntoConstraints=NO;
    NSLayoutConstraint *topConstrainforSegmentBottomView2=[NSLayoutConstraint constraintWithItem:self.SegmentBottomView2
                                                                                       attribute:NSLayoutAttributeTop
                                                                                       relatedBy:NSLayoutRelationEqual
                                                                                          toItem:self.Segment
                                                                                       attribute:NSLayoutAttributeTop
                                                                                      multiplier:1.0f
                                                                                        constant:width*58/640];
    NSLayoutConstraint *leftConstrainforSegmentBottomView2=[NSLayoutConstraint constraintWithItem:self.SegmentBottomView2
                                                                                        attribute:NSLayoutAttributeLeading
                                                                                        relatedBy:NSLayoutRelationEqual
                                                                                           toItem:self.view
                                                                                        attribute:NSLayoutAttributeLeading
                                                                                       multiplier:1.0f
                                                                                         constant:width*220/640];
    NSLayoutConstraint *heightConstrainforSegmentBottomView2=[NSLayoutConstraint constraintWithItem:self.SegmentBottomView2
                                                                                          attribute:NSLayoutAttributeHeight
                                                                                          relatedBy:NSLayoutRelationEqual
                                                                                             toItem:nil
                                                                                          attribute:NSLayoutAttributeNotAnAttribute
                                                                                         multiplier:1.0f
                                                                                           constant:1];
    NSLayoutConstraint *widthConstrainforSegmentBottomView2=[NSLayoutConstraint constraintWithItem:self.SegmentBottomView2
                                                                                         attribute:NSLayoutAttributeWidth
                                                                                         relatedBy:NSLayoutRelationEqual
                                                                                            toItem:nil
                                                                                         attribute:NSLayoutAttributeNotAnAttribute
                                                                                        multiplier:1.0f
                                                                                          constant:width*200/640];
    topConstrainforSegmentBottomView2.active=YES;
    leftConstrainforSegmentBottomView2.active=YES;
    heightConstrainforSegmentBottomView2.active=YES;
    widthConstrainforSegmentBottomView2.active=YES;
    
    //set constrains for view2
    
    self.SegmentBottomView1.translatesAutoresizingMaskIntoConstraints=NO;
    NSLayoutConstraint *topConstrainforSegmentBottomView3=[NSLayoutConstraint constraintWithItem:self.SegmentBottomView3
                                                                                       attribute:NSLayoutAttributeTop
                                                                                       relatedBy:NSLayoutRelationEqual
                                                                                          toItem:self.Segment
                                                                                       attribute:NSLayoutAttributeTop
                                                                                      multiplier:1.0f
                                                                                        constant:width*58/640];
    NSLayoutConstraint *leftConstrainforSegmentBottomView3=[NSLayoutConstraint constraintWithItem:self.SegmentBottomView3
                                                                                        attribute:NSLayoutAttributeLeading
                                                                                        relatedBy:NSLayoutRelationEqual
                                                                                           toItem:self.view
                                                                                        attribute:NSLayoutAttributeLeading
                                                                                       multiplier:1.0f
                                                                                         constant:width*420/640];
    NSLayoutConstraint *heightConstrainforSegmentBottomView3=[NSLayoutConstraint constraintWithItem:self.SegmentBottomView3
                                                                                          attribute:NSLayoutAttributeHeight
                                                                                          relatedBy:NSLayoutRelationEqual
                                                                                             toItem:nil
                                                                                          attribute:NSLayoutAttributeNotAnAttribute
                                                                                         multiplier:1.0f
                                                                                           constant:1];
    NSLayoutConstraint *widthConstrainforSegmentBottomView3=[NSLayoutConstraint constraintWithItem:self.SegmentBottomView3
                                                                                         attribute:NSLayoutAttributeWidth
                                                                                         relatedBy:NSLayoutRelationEqual
                                                                                            toItem:nil
                                                                                         attribute:NSLayoutAttributeNotAnAttribute
                                                                                        multiplier:1.0f
                                                                                          constant:width*200/640];
    topConstrainforSegmentBottomView3.active=YES;
    leftConstrainforSegmentBottomView3.active=YES;
    heightConstrainforSegmentBottomView3.active=YES;
    widthConstrainforSegmentBottomView3.active=YES;
    
    
    
    //set constrain for Title Label
    self.TitleLabel.translatesAutoresizingMaskIntoConstraints=NO;
    NSLayoutConstraint *topConstrainforTitleLabel=[NSLayoutConstraint constraintWithItem:self.TitleLabel
                                                                              attribute:NSLayoutAttributeTop
                                                                              relatedBy:NSLayoutRelationEqual
                                                                                 toItem:self.TopView
                                                                              attribute:NSLayoutAttributeTop
                                                                             multiplier:1.0f
                                                                               constant:width*60/640];
    NSLayoutConstraint *bottomConstrainforTitleLabel=[NSLayoutConstraint constraintWithItem:self.TitleLabel
                                                                              attribute:NSLayoutAttributeBottom
                                                                              relatedBy:NSLayoutRelationEqual
                                                                                 toItem:self.TopView
                                                                              attribute:NSLayoutAttributeBottom
                                                                             multiplier:1.0f
                                                                               constant:0-width*30/640];
    topConstrainforTitleLabel.active=YES;
    bottomConstrainforTitleLabel.active=YES;
    
    NSMutableAttributedString *TitleString=[[NSMutableAttributedString alloc]  initWithString:@"详细信息"];
    [TitleString addAttribute:NSForegroundColorAttributeName
                         value:(id)[UIColor colorWithRed:0/255.0 green:203/255.0 blue:120/255.0 alpha:1].CGColor range:NSMakeRange(0, [TitleString length])];
    [TitleString addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:width*36/640] range:NSMakeRange(0, [TitleString length])];
    [self.TitleLabel setAttributedText:TitleString];
    
    //set constrain for Cancel Button
    self.CancelButton.translatesAutoresizingMaskIntoConstraints=NO;
    NSLayoutConstraint *topConstrainforCancelButton=[NSLayoutConstraint constraintWithItem:self.CancelButton
                                                                                 attribute:NSLayoutAttributeTop
                                                                                 relatedBy:NSLayoutRelationEqual
                                                                                    toItem:self.TopView
                                                                                 attribute:NSLayoutAttributeTop
                                                                                multiplier:1.0f
                                                                                  constant:width*60/640];
    NSLayoutConstraint *bottomConstrainforCancelButton=[NSLayoutConstraint constraintWithItem:self.CancelButton
                                                                                 attribute:NSLayoutAttributeBottom
                                                                                 relatedBy:NSLayoutRelationEqual
                                                                                    toItem:self.TopView
                                                                                 attribute:NSLayoutAttributeBottom
                                                                                multiplier:1.0f
                                                                                  constant:0-width*20/640];
    NSLayoutConstraint *leftConstrainforCancelButton=[NSLayoutConstraint constraintWithItem:self.CancelButton
                                                                                 attribute:NSLayoutAttributeLeading
                                                                                 relatedBy:NSLayoutRelationEqual
                                                                                    toItem:self.TopView
                                                                                 attribute:NSLayoutAttributeLeading
                                                                                multiplier:1.0f
                                                                                  constant:width*20/640];
    NSLayoutConstraint *widthConstrainforCancelButton=[NSLayoutConstraint constraintWithItem:self.CancelButton
                                                                                 attribute:NSLayoutAttributeWidth
                                                                                 relatedBy:NSLayoutRelationEqual
                                                                                    toItem:nil
                                                                                 attribute:NSLayoutAttributeNotAnAttribute
                                                                                multiplier:1.0f
                                                                                  constant:width*25/640];
    topConstrainforCancelButton.active=YES;
    bottomConstrainforCancelButton.active=YES;
    leftConstrainforCancelButton.active=YES;
    widthConstrainforCancelButton.active=YES;
    self.CancelButton.backgroundColor=[UIColor colorWithRed:0/255.0 green:203/255.0 blue:120/255.0 alpha:1];
    
    self.ContentView.translatesAutoresizingMaskIntoConstraints=NO;
    NSLayoutConstraint *topConstrainforContentView=[NSLayoutConstraint constraintWithItem:self.ContentView
                                                                                attribute:NSLayoutAttributeTop
                                                                                relatedBy:NSLayoutRelationEqual
                                                                                   toItem:self.SegmentBottomView1
                                                                                attribute:NSLayoutAttributeTop
                                                                               multiplier:1.0f
                                                                                 constant:1];
    NSLayoutConstraint *bottomConstrainforContentView=[NSLayoutConstraint constraintWithItem:self.ContentView
                                                                                attribute:NSLayoutAttributeBottom
                                                                                relatedBy:NSLayoutRelationEqual
                                                                                   toItem:self.view
                                                                                attribute:NSLayoutAttributeBottom
                                                                               multiplier:1.0f
                                                                                 constant:0];

    NSLayoutConstraint *leftConstrainforContentView=[NSLayoutConstraint constraintWithItem:self.ContentView
                                                                                attribute:NSLayoutAttributeLeading
                                                                                relatedBy:NSLayoutRelationEqual
                                                                                   toItem:self.view
                                                                                attribute:NSLayoutAttributeLeading
                                                                               multiplier:1.0f
                                                                                 constant:0];
    NSLayoutConstraint *rightConstrainforContentView=[NSLayoutConstraint constraintWithItem:self.ContentView
                                                                                attribute:NSLayoutAttributeTrailing
                                                                                relatedBy:NSLayoutRelationEqual
                                                                                   toItem:self.view
                                                                                attribute:NSLayoutAttributeTrailing
                                                                               multiplier:1.0f
                                                                                 constant:0];
    topConstrainforContentView.active=YES;
    bottomConstrainforContentView.active=YES;
    leftConstrainforContentView.active=YES;
    rightConstrainforContentView.active=YES;
    
    self.DoctorTable.translatesAutoresizingMaskIntoConstraints=NO;
    NSLayoutConstraint *topConstrainforDoctorTable=[NSLayoutConstraint constraintWithItem:self.DoctorTable
                                                                                attribute:NSLayoutAttributeTop
                                                                                relatedBy:NSLayoutRelationEqual
                                                                                   toItem:self.SegmentBottomView1
                                                                                attribute:NSLayoutAttributeTop
                                                                               multiplier:1.0f
                                                                                 constant:1];
    NSLayoutConstraint *bottomConstrainforDoctorTable=[NSLayoutConstraint constraintWithItem:self.DoctorTable
                                                                                   attribute:NSLayoutAttributeBottom
                                                                                   relatedBy:NSLayoutRelationEqual
                                                                                      toItem:self.view
                                                                                   attribute:NSLayoutAttributeBottom
                                                                                  multiplier:1.0f
                                                                                    constant:0];
    
    NSLayoutConstraint *leftConstrainforDoctorTable=[NSLayoutConstraint constraintWithItem:self.DoctorTable
                                                                                 attribute:NSLayoutAttributeLeading
                                                                                 relatedBy:NSLayoutRelationEqual
                                                                                    toItem:self.view
                                                                                 attribute:NSLayoutAttributeLeading
                                                                                multiplier:1.0f
                                                                                  constant:0];
    NSLayoutConstraint *rightConstrainforDoctorTable=[NSLayoutConstraint constraintWithItem:self.DoctorTable
                                                                                  attribute:NSLayoutAttributeTrailing
                                                                                  relatedBy:NSLayoutRelationEqual
                                                                                     toItem:self.view
                                                                                  attribute:NSLayoutAttributeTrailing
                                                                                 multiplier:1.0f
                                                                                   constant:0];
    topConstrainforDoctorTable.active=YES;
    bottomConstrainforDoctorTable.active=YES;
    leftConstrainforDoctorTable.active=YES;
    rightConstrainforDoctorTable.active=YES;
    
     self.EvaluateTable.translatesAutoresizingMaskIntoConstraints=NO;
    NSLayoutConstraint *topConstrainforEvaluateTable=[NSLayoutConstraint constraintWithItem:self.EvaluateTable
                                                                                attribute:NSLayoutAttributeTop
                                                                                relatedBy:NSLayoutRelationEqual
                                                                                   toItem:self.SegmentBottomView1
                                                                                attribute:NSLayoutAttributeTop
                                                                               multiplier:1.0f
                                                                                 constant:1];
    NSLayoutConstraint *bottomConstrainforEvaluateTable=[NSLayoutConstraint constraintWithItem:self.EvaluateTable
                                                                                   attribute:NSLayoutAttributeBottom
                                                                                   relatedBy:NSLayoutRelationEqual
                                                                                      toItem:self.view
                                                                                   attribute:NSLayoutAttributeBottom
                                                                                  multiplier:1.0f
                                                                                    constant:0];
    
    NSLayoutConstraint *leftConstrainforEvaluateTable=[NSLayoutConstraint constraintWithItem:self.EvaluateTable
                                                                                 attribute:NSLayoutAttributeLeading
                                                                                 relatedBy:NSLayoutRelationEqual
                                                                                    toItem:self.view
                                                                                 attribute:NSLayoutAttributeLeading
                                                                                multiplier:1.0f
                                                                                  constant:0];
    NSLayoutConstraint *rightConstrainforEvaluateTable=[NSLayoutConstraint constraintWithItem:self.EvaluateTable
                                                                                  attribute:NSLayoutAttributeTrailing
                                                                                  relatedBy:NSLayoutRelationEqual
                                                                                     toItem:self.view
                                                                                  attribute:NSLayoutAttributeTrailing
                                                                                 multiplier:1.0f
                                                                                   constant:0];
    topConstrainforEvaluateTable.active=YES;
    bottomConstrainforEvaluateTable.active=YES;
    leftConstrainforEvaluateTable.active=YES;
    rightConstrainforEvaluateTable.active=YES;
    [self setSelectBottomView];

    self.TextView.editable=NO;
    //content for scroll view
    // self.ContentView.contentSize=CGSizeMake(0, 1000);
    NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
    paragraphStyle.firstLineHeadIndent=width*50/640;
    paragraphStyle.paragraphSpacingBefore=width*25/640;
    NSString *introduce=@"首先需要明确的是，我们的自定义表情一定是有一一就是说，为了方便处理，方便在数据库、网络传输中保存、传输带有表情图片的文本，我们必须要为每种表情取特定的“名字”，数据库中储存的、网络传输的文本就只包含这些标志名字就行，在显示的时候做对应的替换，首先需要明确的是，我们的自定义表情一定是有一一就是说，为了方便处理，方便在数据库、网络传输中保存、传输带有表情图片的文本。\n";
    NSMutableAttributedString *Attributedintroduce=[[NSMutableAttributedString alloc]  initWithString:introduce];
    [Attributedintroduce addAttribute:NSForegroundColorAttributeName
                        value:[UIColor blackColor] range:NSMakeRange(0, [introduce length])];
    [Attributedintroduce addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:width*25/640] range:NSMakeRange(0, [introduce length])];
    [Attributedintroduce addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:NSMakeRange(0, [introduce length])];
    long num1=-0.8f;
    CFNumberRef num = CFNumberCreate(kCFAllocatorDefault,kCFNumberCharType,&num1);
    [Attributedintroduce addAttribute:(id)kCTKernAttributeName value:(__bridge id)num range:NSMakeRange(0,[Attributedintroduce length])];

    
    NSString *service=@"牙齿种植  牙齿美容  牙齿洗涤  牙齿治疗  牙齿美白\n";
    NSMutableAttributedString *Attributedservice=[[NSMutableAttributedString alloc]  initWithString:service];
    [Attributedservice addAttribute:NSForegroundColorAttributeName
                                value:[UIColor blackColor] range:NSMakeRange(0, [service length])];
    [Attributedservice addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:width*25/640] range:NSMakeRange(0, [service length])];
    [Attributedservice addAttribute:(id)kCTKernAttributeName value:(__bridge id)num range:NSMakeRange(0,[Attributedservice length])];
    
    NSString *location=@"地址： 上海市徐家汇xxoo路2039号\n一号线人民广场8号口\n";
    NSMutableAttributedString *Attributedlocation=[[NSMutableAttributedString alloc]  initWithString:location];
    [Attributedlocation addAttribute:NSForegroundColorAttributeName
                              value:[UIColor blackColor] range:NSMakeRange(0, [location length])];
    [Attributedlocation addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:width*25/640] range:NSMakeRange(0, [location length])];
    [Attributedlocation addAttribute:(id)kCTKernAttributeName value:(__bridge id)num range:NSMakeRange(0,[Attributedlocation length])];

    
   // NSMutableString *sr=[NSMutableString stringWithString:introduce];
    //NSAttributedString *contentString=[[NSAttributedString alloc] initWithString:sr];
    //NSTextAttachment *attachimage=[[NSTextAttachment alloc] init ];
    //UIImage *image=[UIImage imageNamed:@"location"];
   // attachimage.image=image;
    CGRect rect= [Attributedintroduce boundingRectWithSize:CGSizeMake(width*600/640, 1000)
                                      options:NSStringDrawingUsesLineFragmentOrigin
                                      context:nil];
        //[attachimage set
   // attachimage.bounds=CGRectMake(100, rect.size.height, width*30/640, width*30/640);
   // NSAttributedString *imageString=[NSAttributedString attributedStringWithAttachment:attachimage];
    //NSMutableAttributedString *textString=[[NSMutableAttributedString alloc] init];
    
    NSString *serverTitle=@"特色服务\n";
    NSMutableAttributedString *AttributedserverTitle=[[NSMutableAttributedString alloc]  initWithString:serverTitle];
    [AttributedserverTitle addAttribute:NSForegroundColorAttributeName
                                  value:[UIColor colorWithRed:162/255.0 green:163/255.0 blue:164/255.0 alpha:1] range:NSMakeRange(0, [serverTitle length])];
    [AttributedserverTitle addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:width*25/640] range:NSMakeRange(0, [serverTitle length])];

    NSString *locationTitle=@"地理位置";
    NSMutableAttributedString *AttributedlocationTitle=[[NSMutableAttributedString alloc]  initWithString:locationTitle];
    [AttributedlocationTitle addAttribute:NSForegroundColorAttributeName
                                  value:[UIColor colorWithRed:162/255.0 green:163/255.0 blue:164/255.0 alpha:1] range:NSMakeRange(0, [locationTitle length])];
    [AttributedlocationTitle addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:width*25/640] range:NSMakeRange(0, [locationTitle length])];
    
     self.TextView.translatesAutoresizingMaskIntoConstraints=NO;
    NSLayoutConstraint *heightconstrainforTextView=[NSLayoutConstraint constraintWithItem:self.TextView
                                                                                attribute:NSLayoutAttributeHeight
                                                                                relatedBy:NSLayoutRelationEqual
                                                                                   toItem:nil
                                                                                attribute:NSLayoutAttributeNotAnAttribute
                                                                               multiplier:10
                                                                                 constant:rect.size.height];
    heightconstrainforTextView.active=YES;

    
    //[textString insertAttributedString:Attributedservice atIndex:3];
    [self.TextView setContentInset:UIEdgeInsetsMake(width*20/640, 0, 0, 0)];
    [self.TextView setAttributedText:Attributedintroduce];
    [self.TextView setScrollEnabled:NO];
    
    //set constrain for service image view
    self.ServiceImageLabel.translatesAutoresizingMaskIntoConstraints=NO;
    NSLayoutConstraint *topconstrainforServiceImageLabel=[NSLayoutConstraint constraintWithItem:self.ServiceImageLabel
                                                                                       attribute:NSLayoutAttributeTop
                                                                                       relatedBy:NSLayoutRelationEqual
                                                                                          toItem:self.TextView
                                                                                       attribute:NSLayoutAttributeBottom
                                                                                      multiplier:1.0f
                                                                                        constant:0];

    NSLayoutConstraint *leftconstrainforServiceImageLabel=[NSLayoutConstraint constraintWithItem:self.ServiceImageLabel
                                                                                         attribute:NSLayoutAttributeLeading
                                                                                         relatedBy:NSLayoutRelationEqual
                                                                                            toItem:self.ContentView
                                                                                         attribute:NSLayoutAttributeLeading
                                                                                        multiplier:1.0f
                                                                                          constant:width*30/640];
    NSLayoutConstraint *heightconstrainforServiceImageLabel=[NSLayoutConstraint constraintWithItem:self.ServiceImageLabel
                                                                                        attribute:NSLayoutAttributeHeight
                                                                                        relatedBy:NSLayoutRelationEqual
                                                                                           toItem:nil
                                                                                        attribute:NSLayoutAttributeNotAnAttribute
                                                                                       multiplier:1.0f
                                                                                         constant:width*25/640];
    NSLayoutConstraint *widthtconstrainforServiceImageLabel=[NSLayoutConstraint constraintWithItem:self.ServiceImageLabel
                                                                                         attribute:NSLayoutAttributeWidth
                                                                                         relatedBy:NSLayoutRelationEqual
                                                                                            toItem:nil
                                                                                         attribute:NSLayoutAttributeNotAnAttribute
                                                                                        multiplier:1.0f
                                                                                          constant:width*25/640];
    topconstrainforServiceImageLabel.active=YES;
    leftconstrainforServiceImageLabel.active=YES;
    heightconstrainforServiceImageLabel.active=YES;
    widthtconstrainforServiceImageLabel.active=YES;
    //[self.ServiceImageLabel setBackgroundImage:[UIImage imageNamed:@"location"] forState:UIControlStateNormal];
    UIImageView *imageview=[[UIImageView alloc] initWithFrame:CGRectMake(0, 0, width*22/640, width*25/640)];
    imageview.image=[UIImage imageNamed:@"location"];
    [self.ServiceImageLabel addSubview:imageview];

    //set constrain for servicetitle
    self.ServiceTitleLabel.translatesAutoresizingMaskIntoConstraints=NO;
    NSLayoutConstraint *leftconstrainforServiceTitleLabel=[NSLayoutConstraint constraintWithItem:self.ServiceTitleLabel
                                                                                      attribute:NSLayoutAttributeLeading
                                                                                      relatedBy:NSLayoutRelationEqual
                                                                                         toItem:self.ServiceImageLabel
                                                                                      attribute:NSLayoutAttributeRight
                                                                                     multiplier:1.0f
                                                                                       constant:width*20/640];
    //set constrain for servicetitle
    NSLayoutConstraint *widthconstrainforServiceTitleLabel=[NSLayoutConstraint constraintWithItem:self.ServiceTitleLabel
                                                                                       attribute:NSLayoutAttributeWidth
                                                                                       relatedBy:NSLayoutRelationEqual
                                                                                          toItem:nil
                                                                                       attribute:NSLayoutAttributeNotAnAttribute
                                                                                      multiplier:1.0f
                                                                                        constant:200];
    leftconstrainforServiceTitleLabel.active=YES;
    widthconstrainforServiceTitleLabel.active=YES;
    self.ServiceTitleLabel.textAlignment=NSTextAlignmentLeft;
    [self.ServiceTitleLabel setAttributedText:AttributedserverTitle];
    [self.ServiceTitleLabel sizeToFit];
    
     [self.TextView setContentInset:UIEdgeInsetsMake(width*20/640, 0, 0, 0)];
    self.ServiceTextView.translatesAutoresizingMaskIntoConstraints=NO;
    NSLayoutConstraint *topconstrainforServiceTextView=[NSLayoutConstraint constraintWithItem:self.ServiceTextView
                                                                                   attribute:NSLayoutAttributeTop
                                                                                   relatedBy:NSLayoutRelationEqual
                                                                                      toItem:self.ServiceTitleLabel
                                                                                   attribute:NSLayoutAttributeBottom
                                                                                  multiplier:1.0f
                                                                                    constant:0];
    
    CGRect rectServiceTextView= [Attributedservice boundingRectWithSize:CGSizeMake(width*600/640, 1000)
                                                   options:NSStringDrawingUsesLineFragmentOrigin
                                                   context:nil];
    
    NSLayoutConstraint *heightconstrainforServiceTextView=[NSLayoutConstraint constraintWithItem:self.ServiceTextView
                                                                                    attribute:NSLayoutAttributeHeight
                                                                                    relatedBy:NSLayoutRelationEqual
                                                                                       toItem:nil
                                                                                    attribute:NSLayoutAttributeNotAnAttribute
                                                                                   multiplier:1.0f
                                                                                     constant:rectServiceTextView.size.height];
    topconstrainforServiceTextView.active=YES;
    heightconstrainforServiceTextView.active=YES;
    
    [self.ServiceTextView setContentInset:UIEdgeInsetsMake(0, 0, 0, 0)];
    [self.ServiceTextView setAttributedText:Attributedservice];
    [self.ServiceTextView setScrollEnabled:NO];
    
    self.LocationImageLabel.translatesAutoresizingMaskIntoConstraints=NO;
    NSLayoutConstraint *topconstrainforLocationImageLabel=[NSLayoutConstraint constraintWithItem:self.LocationImageLabel
                                                                                      attribute:NSLayoutAttributeTop
                                                                                      relatedBy:NSLayoutRelationEqual
                                                                                         toItem:self.ServiceTextView
                                                                                      attribute:NSLayoutAttributeBottom
                                                                                     multiplier:1.0f
                                                                                       constant:width*10/640];
    
    NSLayoutConstraint *leftconstrainforLocationImageLabel=[NSLayoutConstraint constraintWithItem:self.LocationImageLabel
                                                                                       attribute:NSLayoutAttributeLeading
                                                                                       relatedBy:NSLayoutRelationEqual
                                                                                          toItem:self.ContentView
                                                                                       attribute:NSLayoutAttributeLeading
                                                                                      multiplier:1.0f
                                                                                        constant:width*30/640];
    NSLayoutConstraint *heightconstrainforLocationImageLabel=[NSLayoutConstraint constraintWithItem:self.LocationImageLabel
                                                                                         attribute:NSLayoutAttributeHeight
                                                                                         relatedBy:NSLayoutRelationEqual
                                                                                            toItem:nil
                                                                                         attribute:NSLayoutAttributeNotAnAttribute
                                                                                        multiplier:1.0f
                                                                                          constant:width*25/640];
    NSLayoutConstraint *widthtconstrainforLocationImageLabel=[NSLayoutConstraint constraintWithItem:self.LocationImageLabel
                                                                                         attribute:NSLayoutAttributeWidth
                                                                                         relatedBy:NSLayoutRelationEqual
                                                                                            toItem:nil
                                                                                         attribute:NSLayoutAttributeNotAnAttribute
                                                                                        multiplier:1.0f
                                                                                          constant:width*25/640];
    topconstrainforLocationImageLabel.active=YES;
    leftconstrainforLocationImageLabel.active=YES;
    heightconstrainforLocationImageLabel.active=YES;
    widthtconstrainforLocationImageLabel.active=YES;
    UIImageView *Locationimageview=[[UIImageView alloc] initWithFrame:CGRectMake(0, 0, width*22/640, width*25/640)];
    Locationimageview.image=[UIImage imageNamed:@"location"];
    [self.LocationImageLabel addSubview:Locationimageview];
    
    self.LocationTitleLabel.translatesAutoresizingMaskIntoConstraints=NO;
    NSLayoutConstraint *leftconstrainforLocationTitleLabel=[NSLayoutConstraint constraintWithItem:self.LocationTitleLabel
                                                                                       attribute:NSLayoutAttributeLeading
                                                                                       relatedBy:NSLayoutRelationEqual
                                                                                          toItem:self.LocationImageLabel
                                                                                       attribute:NSLayoutAttributeRight
                                                                                      multiplier:1.0f
                                                                                        constant:width*20/640];
    //set constrain for servicetitle
    NSLayoutConstraint *widthconstrainforLocationTitleLabel=[NSLayoutConstraint constraintWithItem:self.LocationTitleLabel
                                                                                        attribute:NSLayoutAttributeWidth
                                                                                        relatedBy:NSLayoutRelationEqual
                                                                                           toItem:nil
                                                                                        attribute:NSLayoutAttributeNotAnAttribute
                                                                                       multiplier:1.0f
                                                                                         constant:200];
    leftconstrainforLocationTitleLabel.active=YES;
    widthconstrainforLocationTitleLabel.active=YES;
    self.LocationTitleLabel.textAlignment=NSTextAlignmentLeft;
    [self.LocationTitleLabel setAttributedText:AttributedlocationTitle];
    [self.LocationTitleLabel sizeToFit];
    
    self.LocationTextView.translatesAutoresizingMaskIntoConstraints=NO;
    NSLayoutConstraint *topconstrainforLocationTextView=[NSLayoutConstraint constraintWithItem:self.LocationTextView
                                                                                    attribute:NSLayoutAttributeTop
                                                                                    relatedBy:NSLayoutRelationEqual
                                                                                       toItem:self.LocationTitleLabel
                                                                                    attribute:NSLayoutAttributeBottom
                                                                                   multiplier:1.0f
                                                                                     constant:0];
    
    CGRect rectLocationTextView= [Attributedlocation boundingRectWithSize:CGSizeMake(width*600/640, 1000)
                                                                options:NSStringDrawingUsesLineFragmentOrigin
                                                                context:nil];
    
    NSLayoutConstraint *heightconstrainforLocationTextView=[NSLayoutConstraint constraintWithItem:self.LocationTextView
                                                                                       attribute:NSLayoutAttributeHeight
                                                                                       relatedBy:NSLayoutRelationEqual
                                                                                          toItem:nil
                                                                                       attribute:NSLayoutAttributeNotAnAttribute
                                                                                      multiplier:1.0f
                                                                                        constant:rectLocationTextView.size.height];
    topconstrainforLocationTextView.active=YES;
    heightconstrainforLocationTextView.active=YES;
    
    [self.LocationTextView setContentInset:UIEdgeInsetsMake(0, 0, 0, 0)];
    [self.LocationTextView setAttributedText:Attributedlocation];
    [self.LocationTextView setScrollEnabled:NO];
    
    //init mapkit view
    _MapView.mapType = MKMapTypeStandard;//标准模式
    _MapView.showsUserLocation = YES;//显示自己
    
    _MapView.zoomEnabled = YES;//支持缩放
    
    
    CLLocationCoordinate2D pos = {39.931203, 116.395573};//找个坐标，我是用百度坐标抓取弄的。http://api.map.baidu.com/lbsapi/getpoint/
    
    MKCoordinateRegion viewRegion = MKCoordinateRegionMakeWithDistance(pos,2000, 2000);//以pos为中心，显示2000米
    MKCoordinateRegion adjustedRegion = [_MapView regionThatFits:viewRegion];//适配map view的尺寸
    [_MapView setRegion:adjustedRegion animated:YES];
    
    self.Scrollheight=rect.size.height+rectServiceTextView.size.height+rectLocationTextView.size.height+width*275/640+width*50/640+width*390/640+width*30/640+width*85/640;
    
    //set properties for doctor tabl
    self.DoctorTable.separatorStyle = UITableViewCellSeparatorStyleNone;
    self.DoctorTable.showsVerticalScrollIndicator = NO;
    
    self.ServiceTextView.editable=NO;
    self.LocationTextView.editable=NO;
    
    }

-(void)viewDidAppear:(BOOL)animated{
    if(!self.detailController){
        self.detailController=[[DetailInformationController alloc] initWithNibName:@"DetailInformation" bundle:nil];
        self.detailController.view.frame=self.InformationView.frame;
    }
    if(self.InformationView.subviews==nil || [self.InformationView.subviews isKindOfClass:[NSNull class]] || self.InformationView.subviews.count==0){
        
        
        [self.InformationView addSubview:self.detailController.view];
        self.detailController.view.frame=self.InformationView.frame;
    }
    self.ContentView.contentSize=CGSizeMake(0, self.Scrollheight);
     NSLog(@"cvfffff1");
    }

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)segmentClick:(UISegmentedControl *)segment {
   [self setSelectBottomView];
}

-(void)setSelectBottomView{
    if(self.Segment.selectedSegmentIndex==0){
        self.SegmentBottomView1.backgroundColor=[UIColor colorWithRed:0/255.0 green:203/255.0 blue:120/255.0 alpha:1];
        self.SegmentBottomView2.backgroundColor=[UIColor colorWithRed:187/255.0 green:188/255.0 blue:189/255.0 alpha:1];
        self.SegmentBottomView3.backgroundColor=[UIColor colorWithRed:187/255.0 green:188/255.0 blue:189/255.0 alpha:1];
        self.ContentView.hidden=NO;
        self.DoctorTable.hidden=YES;
        self.EvaluateTable.hidden=YES;
    }
    if(self.Segment.selectedSegmentIndex==1){
        self.SegmentBottomView2.backgroundColor=[UIColor colorWithRed:0/255.0 green:203/255.0 blue:120/255.0 alpha:1];
        self.SegmentBottomView1.backgroundColor=[UIColor colorWithRed:187/255.0 green:188/255.0 blue:189/255.0 alpha:1];
        self.SegmentBottomView3.backgroundColor=[UIColor colorWithRed:187/255.0 green:188/255.0 blue:189/255.0 alpha:1];
        self.ContentView.hidden=YES;
        self.DoctorTable.hidden=NO;
        self.EvaluateTable.hidden=YES;

    }
    if(self.Segment.selectedSegmentIndex==2){
        self.SegmentBottomView3.backgroundColor=[UIColor colorWithRed:0/255.0 green:203/255.0 blue:120/255.0 alpha:1];
        self.SegmentBottomView2.backgroundColor=[UIColor colorWithRed:187/255.0 green:188/255.0 blue:189/255.0 alpha:1];
        self.SegmentBottomView1.backgroundColor=[UIColor colorWithRed:187/255.0 green:188/255.0 blue:189/255.0 alpha:1];
        self.ContentView.hidden=YES;
        self.DoctorTable.hidden=YES;
        self.EvaluateTable.hidden=NO;
    }
    
}



-(void)dismissViewControllerAnimated:(BOOL)flag completion:(void (^)(void))completion{
    UIViewController *cr=self.firstController;
    cr.tabBarController.view.center=CGPointMake(self.view.center.x-self.view.frame.size.width, cr.tabBarController.view.center.y );
    UIWindow *mainWindow = [[UIApplication sharedApplication].windows objectAtIndex:0];
    [mainWindow addSubview:self.firstController.tabBarController.view];
    [cr.tabBarController.view addSubview:cr.view];
    [UIView animateWithDuration:0.1
                     animations:^{
                         cr.tabBarController.view.center=CGPointMake(self.view.center.x, cr.tabBarController.view.center.y );
                         self.view.center = CGPointMake(self.view.center.x+self.view.frame.size.width, self.view.center.y );}
                     completion:NULL];
}
- (IBAction)goBack:(id)sender {
    [self dismissViewControllerAnimated:YES completion:NULL];
    
}

//table delegete and datasource
-(NSInteger)numberOfSectionsInTableView:(UITableView*)tableView
{
    //if(tableView==self.DoctorTable){
    return 1;
    //}
    //else{
     //   return 2;
    //}
}

-(NSInteger) tableView:(UITableView *)tableView
 numberOfRowsInSection:(NSInteger)section
{
    NSUInteger row=0;
    if(tableView==self.DoctorTable){
    row=self.DoctorTableData.count;
    }
    else{
        //if(section==1){
            row=1;
       // }
        //else{
         //   row=2;
        //}
    }
    return row;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    
    if(tableView==self.DoctorTable){
    static NSString *CellIdentifier = @"doctor";
    DoctorTableViewCell *cell = (DoctorTableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
        if (cell == nil) {
        
        cell=[[DoctorTableViewCell alloc] initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width, self.view.bounds.size.width/4)];
    }
    cell.entity=[self.DoctorTableData objectAtIndex:[indexPath row]];
    [cell setView];
        return cell;
    }
    else{
        static NSString *CellIdentifier1 = @"topcell";
        CommentTableViewCell1 *cell = (CommentTableViewCell1 *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier1];
        if (cell == nil) {
            
            cell=[[CommentTableViewCell1 alloc] initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width, self.view.bounds.size.width/4)];
        }
       // cell.entity=[self.DoctorTableData objectAtIndex:[indexPath row]];
        //[cell setView];
        return cell;
    }
}

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    CGFloat height=0.0;
     if(tableView==self.DoctorTable){
    CGFloat width=[UIScreen mainScreen].bounds.size.width;
    DoctorTableCellEntity *entity=[self.DoctorTableData objectAtIndex:[indexPath row]];
    NSMutableAttributedString *AttributedIntroduce=[[NSMutableAttributedString alloc]  initWithString:entity.introduceText];
    NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
    paragraphStyle.paragraphSpacingBefore=0;
    [AttributedIntroduce addAttribute:NSForegroundColorAttributeName
                                value:[UIColor colorWithRed:127/255.0 green:127/255.0 blue:127/255.0 alpha:1] range:NSMakeRange(0, [entity.introduceText length])];
    [AttributedIntroduce addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:width*26/640] range:NSMakeRange(0, [entity.introduceText length])];
    [AttributedIntroduce addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:NSMakeRange(0, [entity.introduceText length])];
    
    CGRect TextViewRect=[AttributedIntroduce boundingRectWithSize:CGSizeMake(width*336/640, 1000) options:NSStringDrawingUsesLineFragmentOrigin context:nil];
    
    height= TextViewRect.size.height+width*90/640;
     }
     else{
         height=self.view.bounds.size.width*240/640;
     }
    return height;
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

-(NSArray *)DoctorTableData{
    if(!_DoctorTableData){
        DoctorTableCellEntity *first=[[DoctorTableCellEntity alloc] init];
        first=[[DoctorTableCellEntity alloc] init];
        first.photourl=@"doctor5.jpg";
        first.name=@"施乔";
        first.introduceText=@"在未来的中国城市交通出行蓝图中，一个成功的城市出行服务提供商及平台需要契合移动互联和共享经济的发展浪潮，领先的移动互联网技术、基于大数据和云计算的资源匹配能力以及持续的科技驱动路线可为城市交通的变革奠定良好的技术基础。\n";
        first.storeNum=88;
        first.opioninNum=188;
        
        DoctorTableCellEntity *second=[[DoctorTableCellEntity alloc] init];
        second=[[DoctorTableCellEntity alloc] init];
        second.photourl=@"doctor4.jpg";
        second.name=@"袁昆霞";
        second.introduceText=@"在中国城市发展的过程中，逐步形成了私人交通(如步行、自行车、私家车)、公共交通(如出租车、地铁、轻轨、公交车)和共享交通(如租赁车、专车)等交通出行方式互相配合的综合交通服务网络。预计到2020年，中国出租车数量将达到138万辆(684亿美元市场规模)，公交车数量达到57万辆(376亿美元市场规模)，私家车数量达到1.76亿辆(市场规模破万亿美元)。\n";
        second.storeNum=25;
        second.opioninNum=46;
        
        DoctorTableCellEntity *third=[[DoctorTableCellEntity alloc] init];
        third=[[DoctorTableCellEntity alloc] init];
        third.photourl=@"doctor5.jpg";
        third.name=@"施乔";
        third.introduceText=@"在未来的中国城市交通出行蓝图中，一个成功的城市出行服务提供商及平台需要契合移动互联和共享经济的发展浪潮，领先的移动互联网技术、基于大数据和云计算的资源匹配能力以及持续的科技驱动路线可为城市交通的变革奠定良好的技术基础。\n";
        third.storeNum=88;
        third.opioninNum=188;
        
        _DoctorTableData = [[NSArray alloc] initWithObjects:first,second,third, nil];
    }
    return _DoctorTableData;
}

@end
